Ext.define('Usws.view.clz.ClzEdit', {
    extend: 'Ext.window.Window',
    xtype: 'Clz-Edit',
    title: '编辑班级信息',
    layout: 'fit',
    autoShow: true,
    modal: true,
    width:600,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                padding: '10px',
                border: 0,
                items: [
                     { xtype: 'hiddenfield', name:'clz.schoolUid', id: 'schoolUid'}
                    ,{ xtype: 'hiddenfield', name:'clz.uid', id:'clzUid'}
                    ,{ xtype: 'displayfield', id: 'code', fieldLabel: '所属学校编号'}
					,{ xtype: 'displayfield', id: 'name', fieldLabel: '所属学校名称'}
					,{
						xtype: 'fieldcontainer',
				        fieldLabel: '班级',
				        layout: 'column',
				        items: [
						{
	                        xtype: 'combobox',
	                        name: 'schoolEduStage',
	                        id:'schoolEduStage',
	                        store: 'SchoolEduStage',
	                        valueField: 'value',
	                        displayField: 'name',
	                        typeAhead: true,
	                        editable:false,
	                        queryMode: 'local',
	                        emptyText: '请选择教学阶段'
	                    }
						,{
	                        xtype: 'combobox',
	                        name: 'clz.clzGradeCode',
	                        id:'clzGradeCode',
	                        store: 'Grade',
	                        valueField: 'value',
	                        displayField: 'name',
	                        typeAhead: true,
	                        editable:false,
	                        queryMode: 'local',
	                        emptyText: '请选择年级',
	                        allowBlank:false
	                    },
	                    { xtype: 'textfield', name:'clz.clzSn', id: 'clzSn', emptyText: '班号'}
				        ]
					}
                ]
            }
        ];

        this.buttons = [
            {
                text: '确定',
                action: 'save'
            },
            {
                text: '取消',
                scope: this,
                handler: this.close
            }
        ];
        
        this.callParent(arguments);
    }
});